package com.jh.readme.iu.activity.splash;

import android.os.Handler;

import com.jh.readme.iu.activity.home.HomeActivity;
import com.jh.tools.common.AppManager;
import com.jh.tools.common.phone.ToActivityUtil;
/**
 * Created by niejiahuan on 2016/5/31.
 * 主界面控制层
 */
public class SplashPresenter extends SplashContract.Presenter {
    @Override
    public void onStart() {
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                ToActivityUtil.getInstance().toNextActivity(mContext, HomeActivity.class);
                AppManager.getAppManager().finishActivity(SplashActivity.class);
            }
        },3000);

    }

}
